input output tables find teh rule